import asyncio


async def message():
    print(f"准备发送消息啦...")
    await asyncio.sleep(1)  # 等待1秒执行
    return f"韩朵朵，《Python开发实战》"


def main():
    global event_loop
    try:
        event_loop = asyncio.get_event_loop()  # 事件循环器
        result = event_loop.run_until_complete(message())  # 协程启动
        print(f"【业务处理结果】{result}")
    finally:
        event_loop.close()  # 关闭事件管理器


if __name__ == '__main__':
    main()
